--[[	登录流程--]]local cjson = require("cjson")----------------------------------------------------------- class---------------------------------------------------------local Handler = class("Handler")function Handler:ctor(name)	--self.client_net = new("client_net")	self.timer = new("timer")	self:register()endfunction Handler:register()	--g.dispatch:register("games.RES_PING", handler(self, self.pingRes))	--g.dispatch:register("games.RES_LOGIN", handler(self, self.resLogin))endfunction Handler:onStart()	--定时器	--self.timer:start({sec=3, callback=handler(self, self.pingReq)} )endfunction Handler:test(...)	print("test______", ...)endreturn Handler